package com.ys.entity.advanced;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_advert].[dbo].ADS_Sp_AdvertisedProduct", catalog="Id")
public class AdsSpAdvertisedProduct extends BaseEntity<AdsSpAdvertisedProduct> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PortfolioId", nameJava="portfolioId", typeDataBase="varchar")
	private String portfolioId;
	@YsField(nameDataBase="CampaignId", nameJava="campaignId", typeDataBase="varchar")
	private String campaignId;
	@YsField(nameDataBase="CampaignName", nameJava="campaignName", typeDataBase="varchar")
	private String campaignName;
	@YsField(nameDataBase="AdGroupId", nameJava="adGroupId", typeDataBase="varchar")
	private String adGroupId;
	@YsField(nameDataBase="AdGroupName", nameJava="adGroupName", typeDataBase="varchar")
	private String adGroupName;
	@YsField(nameDataBase="CampaignBudgetCurrencyCode", nameJava="campaignBudgetCurrencyCode", typeDataBase="varchar")
	private String campaignBudgetCurrencyCode;
	@YsField(nameDataBase="ExchangeRate", nameJava="exchangeRate", typeDataBase="decimal")
	private BigDecimal exchangeRate;
	@YsField(nameDataBase="AdId", nameJava="adId", typeDataBase="varchar")
	private String adId;
	@YsField(nameDataBase="AdvertisedAsin", nameJava="advertisedAsin", typeDataBase="varchar")
	private String advertisedAsin;
	@YsField(nameDataBase="AdvertisedSKU", nameJava="advertisedSKU", typeDataBase="varchar")
	private String advertisedSKU;
	@YsField(nameDataBase="ProductCode", nameJava="productCode", typeDataBase="varchar")
	private String productCode;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="Impressions", nameJava="impressions", typeDataBase="int")
	private Integer impressions;
	@YsField(nameDataBase="Clicks", nameJava="clicks", typeDataBase="int")
	private Integer clicks;
	@YsField(nameDataBase="ClickThruRate", nameJava="clickThruRate", typeDataBase="decimal")
	private BigDecimal clickThruRate;
	@YsField(nameDataBase="CostPerClick", nameJava="costPerClick", typeDataBase="decimal")
	private BigDecimal costPerClick;
	@YsField(nameDataBase="Spend", nameJava="spend", typeDataBase="decimal")
	private BigDecimal spend;
	@YsField(nameDataBase="Cost", nameJava="cost", typeDataBase="decimal")
	private BigDecimal cost;
	@YsField(nameDataBase="AcosClicks7d", nameJava="acosClicks7d", typeDataBase="decimal")
	private BigDecimal acosClicks7d;
	@YsField(nameDataBase="RoasClicks7d", nameJava="roasClicks7d", typeDataBase="decimal")
	private BigDecimal roasClicks7d;
	@YsField(nameDataBase="UnitsSoldClicks1d", nameJava="unitsSoldClicks1d", typeDataBase="int")
	private Integer unitsSoldClicks1d;
	@YsField(nameDataBase="Sales1d", nameJava="sales1d", typeDataBase="decimal")
	private BigDecimal sales1d;
	@YsField(nameDataBase="Purchases1d", nameJava="purchases1d", typeDataBase="int")
	private Integer purchases1d;
	@YsField(nameDataBase="UnitsSoldSameSku1d", nameJava="unitsSoldSameSku1d", typeDataBase="int")
	private Integer unitsSoldSameSku1d;
	@YsField(nameDataBase="AttributedSalesSameSku1d", nameJava="attributedSalesSameSku1d", typeDataBase="decimal")
	private BigDecimal attributedSalesSameSku1d;
	@YsField(nameDataBase="PurchasesSameSku1d", nameJava="purchasesSameSku1d", typeDataBase="int")
	private Integer purchasesSameSku1d;
	@YsField(nameDataBase="UnitsSoldOtherSku7d", nameJava="unitsSoldOtherSku7d", typeDataBase="int")
	private Integer unitsSoldOtherSku7d;
	@YsField(nameDataBase="SalesOtherSku7d", nameJava="salesOtherSku7d", typeDataBase="decimal")
	private BigDecimal salesOtherSku7d;
	@YsField(nameDataBase="ShopNameMc", nameJava="shopNameMc", typeDataBase="varchar")
	private String shopNameMc;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="varchar")
	private String shopId;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="Date", nameJava="date", typeDataBase="varchar")
	private String date;
	@YsField(nameDataBase="CUser", nameJava="cUser", typeDataBase="varchar")
	private String cUser;
	@YsField(nameDataBase="VSfJp", nameJava="vSfJp", typeDataBase="varchar")
	private String vSfJp;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public AdsSpAdvertisedProduct setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPortfolioId() {
		return portfolioId;
	}
	public AdsSpAdvertisedProduct setPortfolioId(String portfolioId) {
		this.portfolioId = portfolioId;
		return this;
	}
	public String getCampaignId() {
		return campaignId;
	}
	public AdsSpAdvertisedProduct setCampaignId(String campaignId) {
		this.campaignId = campaignId;
		return this;
	}
	public String getCampaignName() {
		return campaignName;
	}
	public AdsSpAdvertisedProduct setCampaignName(String campaignName) {
		this.campaignName = campaignName;
		return this;
	}
	public String getAdGroupId() {
		return adGroupId;
	}
	public AdsSpAdvertisedProduct setAdGroupId(String adGroupId) {
		this.adGroupId = adGroupId;
		return this;
	}
	public String getAdGroupName() {
		return adGroupName;
	}
	public AdsSpAdvertisedProduct setAdGroupName(String adGroupName) {
		this.adGroupName = adGroupName;
		return this;
	}
	public String getCampaignBudgetCurrencyCode() {
		return campaignBudgetCurrencyCode;
	}
	public AdsSpAdvertisedProduct setCampaignBudgetCurrencyCode(String campaignBudgetCurrencyCode) {
		this.campaignBudgetCurrencyCode = campaignBudgetCurrencyCode;
		return this;
	}
	public BigDecimal getExchangeRate() {
		return exchangeRate;
	}
	public AdsSpAdvertisedProduct setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
		return this;
	}
	public String getAdId() {
		return adId;
	}
	public AdsSpAdvertisedProduct setAdId(String adId) {
		this.adId = adId;
		return this;
	}
	public String getAdvertisedAsin() {
		return advertisedAsin;
	}
	public AdsSpAdvertisedProduct setAdvertisedAsin(String advertisedAsin) {
		this.advertisedAsin = advertisedAsin;
		return this;
	}
	public String getAdvertisedSKU() {
		return advertisedSKU;
	}
	public AdsSpAdvertisedProduct setAdvertisedSKU(String advertisedSKU) {
		this.advertisedSKU = advertisedSKU;
		return this;
	}
	public String getProductCode() {
		return productCode;
	}
	public AdsSpAdvertisedProduct setProductCode(String productCode) {
		this.productCode = productCode;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public AdsSpAdvertisedProduct setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public Integer getImpressions() {
		return impressions;
	}
	public AdsSpAdvertisedProduct setImpressions(Integer impressions) {
		this.impressions = impressions;
		return this;
	}
	public Integer getClicks() {
		return clicks;
	}
	public AdsSpAdvertisedProduct setClicks(Integer clicks) {
		this.clicks = clicks;
		return this;
	}
	public BigDecimal getClickThruRate() {
		return clickThruRate;
	}
	public AdsSpAdvertisedProduct setClickThruRate(BigDecimal clickThruRate) {
		this.clickThruRate = clickThruRate;
		return this;
	}
	public BigDecimal getCostPerClick() {
		return costPerClick;
	}
	public AdsSpAdvertisedProduct setCostPerClick(BigDecimal costPerClick) {
		this.costPerClick = costPerClick;
		return this;
	}
	public BigDecimal getSpend() {
		return spend;
	}
	public AdsSpAdvertisedProduct setSpend(BigDecimal spend) {
		this.spend = spend;
		return this;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public AdsSpAdvertisedProduct setCost(BigDecimal cost) {
		this.cost = cost;
		return this;
	}
	public BigDecimal getAcosClicks7d() {
		return acosClicks7d;
	}
	public AdsSpAdvertisedProduct setAcosClicks7d(BigDecimal acosClicks7d) {
		this.acosClicks7d = acosClicks7d;
		return this;
	}
	public BigDecimal getRoasClicks7d() {
		return roasClicks7d;
	}
	public AdsSpAdvertisedProduct setRoasClicks7d(BigDecimal roasClicks7d) {
		this.roasClicks7d = roasClicks7d;
		return this;
	}
	public Integer getUnitsSoldClicks1d() {
		return unitsSoldClicks1d;
	}
	public AdsSpAdvertisedProduct setUnitsSoldClicks1d(Integer unitsSoldClicks1d) {
		this.unitsSoldClicks1d = unitsSoldClicks1d;
		return this;
	}
	public BigDecimal getSales1d() {
		return sales1d;
	}
	public AdsSpAdvertisedProduct setSales1d(BigDecimal sales1d) {
		this.sales1d = sales1d;
		return this;
	}
	public Integer getPurchases1d() {
		return purchases1d;
	}
	public AdsSpAdvertisedProduct setPurchases1d(Integer purchases1d) {
		this.purchases1d = purchases1d;
		return this;
	}
	public Integer getUnitsSoldSameSku1d() {
		return unitsSoldSameSku1d;
	}
	public AdsSpAdvertisedProduct setUnitsSoldSameSku1d(Integer unitsSoldSameSku1d) {
		this.unitsSoldSameSku1d = unitsSoldSameSku1d;
		return this;
	}
	public BigDecimal getAttributedSalesSameSku1d() {
		return attributedSalesSameSku1d;
	}
	public AdsSpAdvertisedProduct setAttributedSalesSameSku1d(BigDecimal attributedSalesSameSku1d) {
		this.attributedSalesSameSku1d = attributedSalesSameSku1d;
		return this;
	}
	public Integer getPurchasesSameSku1d() {
		return purchasesSameSku1d;
	}
	public AdsSpAdvertisedProduct setPurchasesSameSku1d(Integer purchasesSameSku1d) {
		this.purchasesSameSku1d = purchasesSameSku1d;
		return this;
	}
	public Integer getUnitsSoldOtherSku7d() {
		return unitsSoldOtherSku7d;
	}
	public AdsSpAdvertisedProduct setUnitsSoldOtherSku7d(Integer unitsSoldOtherSku7d) {
		this.unitsSoldOtherSku7d = unitsSoldOtherSku7d;
		return this;
	}
	public BigDecimal getSalesOtherSku7d() {
		return salesOtherSku7d;
	}
	public AdsSpAdvertisedProduct setSalesOtherSku7d(BigDecimal salesOtherSku7d) {
		this.salesOtherSku7d = salesOtherSku7d;
		return this;
	}
	public String getShopNameMc() {
		return shopNameMc;
	}
	public AdsSpAdvertisedProduct setShopNameMc(String shopNameMc) {
		this.shopNameMc = shopNameMc;
		return this;
	}
	public String getShopId() {
		return shopId;
	}
	public AdsSpAdvertisedProduct setShopId(String shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public AdsSpAdvertisedProduct setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public AdsSpAdvertisedProduct setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getDate() {
		return date;
	}
	public AdsSpAdvertisedProduct setDate(String date) {
		this.date = date;
		return this;
	}
	public String getCUser() {
		return cUser;
	}
	public AdsSpAdvertisedProduct setCUser(String cUser) {
		this.cUser = cUser;
		return this;
	}
	public String getVSfJp() {
		return vSfJp;
	}
	public AdsSpAdvertisedProduct setVSfJp(String vSfJp) {
		this.vSfJp = vSfJp;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public AdsSpAdvertisedProduct setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public AdsSpAdvertisedProduct setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public AdsSpAdvertisedProduct setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static AdsSpAdvertisedProduct adsSpAdvertisedProduct(
		String portfolioId,
		String campaignId,
		String campaignName,
		String adGroupId,
		String adGroupName,
		String campaignBudgetCurrencyCode,
		BigDecimal exchangeRate,
		String adId,
		String advertisedAsin,
		String advertisedSKU,
		String productCode,
		String productName,
		Integer impressions,
		Integer clicks,
		BigDecimal clickThruRate,
		BigDecimal costPerClick,
		BigDecimal spend,
		BigDecimal cost,
		BigDecimal acosClicks7d,
		BigDecimal roasClicks7d,
		Integer unitsSoldClicks1d,
		BigDecimal sales1d,
		Integer purchases1d,
		Integer unitsSoldSameSku1d,
		BigDecimal attributedSalesSameSku1d,
		Integer purchasesSameSku1d,
		Integer unitsSoldOtherSku7d,
		BigDecimal salesOtherSku7d,
		String shopNameMc,
		String shopId,
		String vGsJc,
		String vGsBm,
		String date,
		String cUser,
		String vSfJp,
		Integer status
			) {
		AdsSpAdvertisedProduct entity = new AdsSpAdvertisedProduct();
		entity.setPortfolioId(portfolioId);
		entity.setCampaignId(campaignId);
		entity.setCampaignName(campaignName);
		entity.setAdGroupId(adGroupId);
		entity.setAdGroupName(adGroupName);
		entity.setCampaignBudgetCurrencyCode(campaignBudgetCurrencyCode);
		entity.setExchangeRate(exchangeRate);
		entity.setAdId(adId);
		entity.setAdvertisedAsin(advertisedAsin);
		entity.setAdvertisedSKU(advertisedSKU);
		entity.setProductCode(productCode);
		entity.setProductName(productName);
		entity.setImpressions(impressions);
		entity.setClicks(clicks);
		entity.setClickThruRate(clickThruRate);
		entity.setCostPerClick(costPerClick);
		entity.setSpend(spend);
		entity.setCost(cost);
		entity.setAcosClicks7d(acosClicks7d);
		entity.setRoasClicks7d(roasClicks7d);
		entity.setUnitsSoldClicks1d(unitsSoldClicks1d);
		entity.setSales1d(sales1d);
		entity.setPurchases1d(purchases1d);
		entity.setUnitsSoldSameSku1d(unitsSoldSameSku1d);
		entity.setAttributedSalesSameSku1d(attributedSalesSameSku1d);
		entity.setPurchasesSameSku1d(purchasesSameSku1d);
		entity.setUnitsSoldOtherSku7d(unitsSoldOtherSku7d);
		entity.setSalesOtherSku7d(salesOtherSku7d);
		entity.setShopNameMc(shopNameMc);
		entity.setShopId(shopId);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setDate(date);
		entity.setCUser(cUser);
		entity.setVSfJp(vSfJp);
		entity.setStatus(status);
		return entity;
	}
}